package o;

import android.content.Context;
import android.os.RemoteException;
import com.huawei.appmarket.framework.coreservice.DataHolder;
import com.huawei.appmarket.framework.coreservice.Status;
import com.huawei.appmarket.service.externalservice.distribution.download.request.ResumeTaskIPCRequest;
import com.huawei.appmarket.service.externalservice.distribution.download.response.TaskOperationResponse;

public class dzi implements dhe<ResumeTaskIPCRequest, TaskOperationResponse> {
    public void ˊ(Context context, DataHolder<ResumeTaskIPCRequest> dataHolder, dgz o_dgz) throws RemoteException {
        if (doo.ˊ(context)) {
            int i;
            String ˏ = ((ResumeTaskIPCRequest) dataHolder.ˊ()).ˏ();
            String ˏ2 = dataHolder.ˏ().ˏ();
            String ˋ = dataHolder.ˏ().ˋ();
            if (dxi.ॱ(context, dataHolder.ˏ().ˊ(), ((ResumeTaskIPCRequest) dataHolder.ˊ()).ˋ())) {
                i = 4;
            } else {
                i = 1;
            }
            o_dgz.ॱ(dzg.ˋ(ˏ, ˏ2, ˋ, ˋ(), i));
            return;
        }
        Status status = new Status();
        status.ˋ(7);
        o_dgz.ॱ(status);
        Logger.ˎ("ResumeTaskProcess", "have No network");
    }

    public TaskOperationResponse ˋ() {
        return new TaskOperationResponse();
    }
}
